
#ifndef CMDBTHREAD_H
#define CMDBTHREAD_H

#include "CmDBThreadInterface.h"

///////////////////////////////////////////
//class CDBReqEvent
///////////////////////////////////////////
class CDBReqEvent : public IRtEvent
{
public:
	CDBReqEvent(
		IDBEvent* pDBEvent, 
		IRtEventQueue* pBackEventQueue,
		HANDLE hDB);
	
	virtual ~CDBReqEvent();	
public:
	virtual RtResult OnEventFire();
protected:
	CRtAutoPtr<IDBEvent> m_pDBEvent;	
	IRtEventQueue* m_pBackEventQueue;
	HANDLE m_hDB;
};

///////////////////////////////////////////
//class CDBRespEvent
///////////////////////////////////////////
class CDBRespEvent : public IRtEvent
{
public:
	CDBRespEvent(IDBEvent* pDBEvent);
	virtual ~CDBRespEvent();	
public:
	virtual RtResult OnEventFire();
protected:
	CRtAutoPtr<IDBEvent> m_pDBEvent;		
};

#endif	//CMDBTHREAD_H
